package com.tencent.cloud.iov.kernel.tmpkey;

import com.tencent.cloud.iov.kernel.constant.HttpHeaderConst;
import com.tencent.cloud.iov.kernel.model.BaseResponse;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @author vinsonhuang
 * @date 2018/5/9
 */
interface TmpKeyService {

    @Headers(HttpHeaderConst.ADD_COOKIE)
    @POST("/v2/account/cloud/get_tmp_key")
    Observable<BaseResponse<TmpKeyInfo>> getAccountTmpKey(@Body TmpKeyRequest request);

    @Headers(HttpHeaderConst.ADD_COOKIE)
    @POST("/v2/profile/cloud/get_tmp_key")
    Observable<BaseResponse<TmpKeyInfo>> getProfileTmpKey(@Body TmpKeyRequest request);
}